package com.sannuo.common.result;

import lombok.Getter;

@Getter
public enum  ResultCode {    //结果码  枚举类
    //定义常量
    SUCCESS(0, "成功"),
    FAIL(201, "失败"),
    VALUE_NULL(300, "值为空"),
    PARAM_NULL(301, "参数为空，处理异常"),
    SIGN_ERROR(400, "签名错误"),
    NO_LOGIN(401, "未登录"),
    SYS_ERROR(500, "系统异常");

    //属性
    private Integer code;
    private String message;

    //构造方法(必须)
    private ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }



}
